:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --border: #21262d;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(6, 182, 212, 0.10), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.10), transparent 45%);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
}

/* ---------- Entrance animation ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Avatar glow ---------- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.35), 0 0 40px 4px rgba(59, 130, 246, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.10), 0 0 55px 10px rgba(59, 130, 246, 0.28);
  }
}

.avatar-ring {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 9999px;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--accent-cyan), var(--accent-blue), var(--accent-emerald), var(--accent-cyan));
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg);
  background-color: var(--bg-elevated);
}

/* ---------- Status badge ---------- */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Link cards ---------- */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.10));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 10px 30px -12px rgba(6, 182, 212, 0.35);
  background-color: #181f29;
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 1;
}

.link-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.link-icon-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid var(--border);
  font-size: 17px;
  color: var(--text-primary);
  transition: color 0.25s ease, background 0.25s ease;
}

.link-card:hover .link-icon-box {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(59, 130, 246, 0.28));
}

.link-arrow {
  position: relative;
  z-index: 1;
  margin-inline-start: auto;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent-cyan);
}

.link-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.link-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
